initCategorySet working with pipeline