created brute force solutions