added printing of max time