prevent a race