refactor main loop into charitySearch