This invention provides novel compounds that are modulators of gamma secretase. The compounds have the formula n nAlso disclosed are methods of modulating gamma secretase activity and methods of treating Alzheimer's Disease using the compounds of formula (I).