corrected sleep time verification and output