removing unused code
beginning search