fixed a bug in input file