check for correct number of args