update addfps main function