add params save to txt before calculation