corrected line number printing