added patch method