update works for category