add for loop to update multiple branches at once