changed repeat program to program_group.type(0), and followd the changes in cctv