core loops