added finish judge