for loop removed in brute force