corrected d3