return errors with select_index