let mut gp = p.parent_node().expect("p should have parent");