take the translation fuction outside of draw_