Compounds of formula (I) or pharmaceutically acceptable salts thereof are provided, wherein each of Z, X, R
1
, R
2
, R
3
, R
4
, y, n, and Ar are as defined, and described in classes and subclasses herein, which are agonists or partial agonists of the 2C subtype of brain serotonin receptors. The compounds, and compositions thereof, are useful for treating a variety of central nervous system disorders such as schizophrenia.