improve incorrect number of parameter error checking #18