loop equals