add middle3 with d3's array method