select node if selecting gate of compact node