A surface bearing a group capable of alkylating acyl hydrazones can be functionalized to contain aminimide groups as follows: In the equation above, Z and W are linkers composed of atoms selected from the set of C, N, H, O, S, and X is a suitable leaving group, such as a halogen or tosylate.