Acid halides will react with carboxylic acids to form anhydrides. These derivatives include salts, chlorides, esters, amides, and anhydrides. With anhydrides, epoxides give polyesters. Acyl chlorides and carboxylic anhydrides react fastest, followed by aldehydes and ketones. These include aliphatic and cycloaliphatic amines, polyaminoamides, amides, and anhydrides. Acyl halides and anhydrides of carboxylic acids are also commonly used acylating agents. Acid halides are the most reactive towards nucleophiles, followed by anhydrides, esters, and amides. Esters are less reactive than acid halides and anhydrides. Esters and anhydrides also react with ammonia to form amides. Cyanogen bromide can be used to prepare aryl nitriles, nitriles, anhydrides, and cyanates. Formulated bisphenol-based epoxy resins, cured with dicarboxylic anhydrides or amines are used for indoor applications. Oximes can be dehydrated using acid anhydrides to yield corresponding nitriles. Dicarboxylic acids are converted to the anhydrides upon treatment with acetic anhydride. Since acyl chlorides and acid anhydrides also react with water, anhydrous conditions are preferred. Other anhydrides and acyl halides can give similar products.