my attempt at brute force