fix positive arity check

arity check

use anonymous struct