try to use atomics