add select by index function
selection stability