add counterdata, update scheme