getting rid of d3 code