multiple thread for searching