modify index to use d3