changed location of d3 ref