do an index check in Terrain