switch children nodes from vector to map