make update and updateCategory more consistent