update map
update data and index