switching to d3.js