added the map method