revised the framerate fix