d3 improvement