cleaning up params for pnp