matrix is not recalculated where they are the same between two consecutive words