simplified setParams a little