created return_promo_group_data function to return promo group data as array