remove unecessary else in the search conditional