fixed using the FPS variable