As walking up hills is a physiologically vigorous physical activity and can contribute to weight control , greater neighbourhood slopes may provide a protective barrier to weight gain , and help prevent Type 2 diabetes onset .