make AST nodes homogeneous