add more parentheses scopes
return condition condensed on toTime function