change structure search function name so that it does not clash with the variable name which holds the current search type