add extra checks for category