better time logic