adding loop alert