tweaking d3 rendering