fixed: program did not understand empty lines in the input file