add patch method