scope procedure works with arity -1 to 10