change order in d3 and numpy section