refactor CSG data to reflect node arity