made so that time defaults to current time if not set