getting the right output for plotdata_co