updating findmIcon method with more efficient algorithm