corrected save input files