make fps a global