added d3 stuff