fixed an error with wrong lines commented out in printing to listing file