simple bruteforce solution