handle rotation and cood printing