tweak to encoding