nlsr was stopping in the middle, putting back the whil loop back again