check arguments are valid"