cleaned up input file