You declared your array: map, it should be map1