preparing for map