Participants included persons aged 21 to 65 years with type 2 diabetes diagnosed more than 1 year before the study ; their body mass index was 30 to 42 ( calculated as weight in kilograms divided by height in meters squared ) and hemoglobin A1c ( HbA1c ) was greater than or equal to 6.5 % .