Sometimes changing your diet or taking medications is not enough. If these steps do not help, you may need to have surgery. During surgery, the lower part of your stomach is stapled or bypassed to help your stomach empty.