remove same_node func, inline operations