finished most similar items function