add categorical information