the judge condition is too complex, there mush be a simple way