Revert "removing unnecessary code"

This reverts commit ddcc8359ce945f9bc4344cb8b69aacc174acff18.
cleaning up language search code