corrected the logger