normalize categories