add judge part.