new functions: exact_match and linearfit