change device_sample from cm to pc