modifying path for d3