change to atomic