Early termination condition in trial2 and trial3