rename time into duration for more clarity