rename judgement pattern