only print if type="plot"