a nice loop finder