removing unused code. searching by thumb