index modified for leaflet