refactor match_predicts