separate keep_waiting_index