added input and output file