added tile indexing