working on subarray for data pieces