removed extra leaflet code