trying to implement FPS control