patch method