refactored MessageSequenceComparator