check for correct # of args