fix level 3 end conditions