cont. clean up
finishes first round of cleaning on search