fixed findRing method, which wasn't working at all before