now it stops when it finds the answer