fixed bug for bruteforce method
merge