logging corrected