remove pointer to maps, since they are not necessary
(when maps are passed, only header is copied)