check the params