exit with perfect match or not