added input output file