I know HMDS is a popular primer in the MEMS field. It replace the hydroxyl groups on silicon surface with methyl groups which believes to bond with photoresist better and thus improve the adhesion. However, HMDS also makes the surface more hydrophobic. Hydrophobic surfaces usually have bad adhesion properties (for example, Teflon and PDMS surfaces). Why does HMDS improve adhesion while increasing the hydrophobicity of the wafer surface?