got the index option function going