added a framePlot function