Formula

Roshunda
So my baby girl was not pooping so dr changed her formula she pooped,however I noticed a lack of sleep since I changed to the new formula so last night I gave her 4bottles of the old formula is that safe to do go back and forth with them?