use arity, instead of arguments check