matching problem