simplifies time managing code