playlist template loop workijg