updating the categories