changes to allow finding midsimilarities even without finding front or end similarity