modify match_history dict