revert and double up modsearch function