modified plot2 for match