search fix, stray for loop removed