using IndexArrays in gridsystem to optimize retrieve