-replaced atomic_add with atomic_inc