pop stack inside loop & rename Loop struct