fixed time not being printed.