finished loops problem