analyze patterns similarities