implemented upto my-first-index.