L-isoaspartyl methyltransferase repairs isoaspartate and D-aspartate residues by sticking a methyl group onto the side chain carboxyl group in the residue, creating an ester. The ester rapidly and spontaneously turns into the succinimide (red), and randomly turns back into normal aspartic acid (black) or isoaspartate again (green) for another attempt.