script to visualize matching