making sure framerate is defined