sync map and table