update for Map data structure