try to figure out race condition