add getMap & setType method