loops ended