update cat & subcat