switch to the next subtask when prev is solved