made it atomic