edited timedloop