static setParams function