removed dependency on d3.