framerate stuff is working correctly