removed constant construction of encoders and decoders