The present invention provides compounds of the formula:
##STR1##
wherein m is 0, 1 or 2; p is 0 or 1; Y is O, S, S(O) or S(O)2
and R1 to R7 are various substituents as selective modulators
of the nicotinic acetylcholine receptor useful in the treatment of pain, Alzheimer's
disease, memory loss or dementia or loss of motor function.