pass the params correctly