adding nodes such as instanceof and self-assign