allocate for map is done