clean up and rotation and frame rate