added constant framerate