corrected debug log