added case for zero arity