adding judging section