change map to table