added simple arity validation