implement normalize categories