add a flat array to tree sample
for future using