add check for category criteria