corrected logging