added patch method to update entity