finished func performSearch