corrected logging statements