typos corrected; get params are now renamed p1, p2, ....