provide routines to help users who want to work with indices, not iterators