removed race functions