This randomized controlled trial at two university medical centers enrolled 227 overweight or obese adults with type 2 diabetes and assigned them to parallel in-person diet and exercise counseling , with prepackaged foods in a planned menu during the initial phase , or to usual care ( UC ; two weight loss counseling sessions and monthly contacts ) .