Abstract: The present invention relates to therapeutically active heterocyclic compounds, to methods for their preparation and to pharmaceutical compositions comprising the compounds. The novel compounds are useful in treating diseases in the central nervous system related to malfunctioning of the nicotinic cholinergic system.