debugging simple search