debugging racing thing