added framerate cap