updated d3 code