commented the check extension in Search fnction