tweak time logic