add minimum time check