remove extra line in search code