initial loop