verify the pass way of parameters.