add fps to play function