getting rid of force encoding code