initial loop parse