change map to key-value