incorporated multiplot function