added get function for indexes