Post-treatments of the devices