added structure for photo and checkin loops