The invention relates to compounds of formula ##STR00001## wherein the
substituents are described herein. The compounds may be used in the
treatment of illnesses based on the glycine uptake inhibitor, such as
psychoses, pain, neurodegenerative disfunction in memory and learning,
schizophrenia, dementia and other diseases in which cognitive processes
are impaired, such as attention deficit disorders or Alzheimer's disease.