done with brute + index