exit loop if find the wn