add judge condition