edits to indexselect