some changes to judge