moved search to own file.