prevent catastrophic timing bug