tweaking encoding