closes #7 (indexing)