use unpacked indices to get value