add race conditions