modify encodeing