initial tidy for d3