checking for incorrect parameters