changing map1 to map