add partial judge part