GENERAL STEPS: Methyl 4-(4-methylpiperazin-1-ylmethyl)benzoate hydrochloride (1.25 g) was dissolved in potassium hydroxide-methanol solution (0.93 g KOH dissolved in 15 ml methanol). Water (0.75 ml) was added and the mixture was heated to reflux for 1 hour. After completion of the reaction, the mixture was cooled to room temperature and the pH was adjusted to 6 with 2 M hydrochloric acid solution. the solvent was removed by evaporation and the residue was dried under vacuum. The resulting residue contained 4-(4-methylpiperazin-1-ylmethyl)benzoic acid and the inorganic salt, which could be used in the subsequent reaction without further purification, assuming 100% yield of the title compound.1H NMR (400 MHz, d6-DMSO) δ: 2.27 (s, 3H), 2.44 (bs, 2H), 3.18-3.95 (m, 8H), 7.41 ( d, 2H, J=8Hz), 7.89 (d, 2H, J=8.1Hz).