add update method to ObjectService