removed some code from encoding module.