SetPar: tested and debugged