added functionality to the map