This invention provides novel compounds that are modulators of gamma secretase. The compounds have the formula [Chemical formula should be inserted here as it appears on abstract in electronic form.] Also disclosed are methods of modulating gamma secretase activity and methods of treating Alzheimer's disease using the compounds of formula (I).