todo: change the good matches comparison