use goroutines when searching