modify the fps calculation