uses d3's chaining methods to map data now