second commit added plot_matches function