read some materials.  working on index logic again