Revert "changed categories to terms_names"

This reverts commit 162a9fbd1703c415bb1eb0da9c35ce3fd9729489.