add d3 to define block