A total of 39 adolescents ( ages , 13-17 years ) with type 1 diabetes and their caregivers were randomized to a positive psychology intervention ( n = 20 ) or an attention control ( education ) intervention ( n = 19 ) .