search parameter removed from if clause