outside loops