got basic indexing working