It is a good thing they are doing the endoscopy. The doctor gets a sneak peak inside your stomach which helps him prep for the surgery. Mine was checking to make sure there was no damage to the esophagus , cancer or ulcers etc. Everything came back fine.