add matches & fix middle matches.