Bariatric surgery in treating obesity