i think you can avoid this by keeping track of such nodes