in findNode method While loop is corrected