return the map function