added the multiplot function