what ends this loop?