flip grid indexing