add status judgement