mistake in code for FPS averaging fixed