now saves param values to output file