d3 improvements