splits searches out into their own functions