Change after and before parent, child node to struct