create params function