handle two nodes better