Title: Nucleophilic substitution in heterocyclic molecules