correction to data array slicing