changed brute loop