rebind extracted from d3