change map behavior, can let map sync with an object