adding categorization to preprocess