`nodes.pop(0)` twice is better