modified stomach acid logic