search now outputs results to a slice