updating category list encoding