added d3 ref