checking for parameters of method