debug race condition