brute force method now works