refactor checkArguments