before adding d3