got rid of the race condition