Now it compiles and run but search doesn't work at all