update map after list is updated.