working on fixing framerate