added display function for map