Omg man you are the best ever. you are right, is under location was not doing its job and I thought it was I literally deleted both branches and everything in front of them, and deleted the do once function and it worked!.
you are a genius thank you