fixed bug in compile searches function, but still getting errors from line 65, 72 and 75 that I don't understand