Decoder and method for decoding