changed FPS calculation formula