comment judge function