correction of variable name and change of search action