working on index auto expansion