corrected logging output
moved time for cleaning data