patch foreach