add time checks and time output