clean up the time loop a bit