added paper categorization code