made it work for game resets