Change to storing x y in node, not it's attrs.