changed update method to accept JSON of partial object