optimize the time manager