working on judging system