simplifying indexing