The invention relates to a method for modulating Ca 2'-release-activated Ca 2+ channels (CRAG) in a cell by administering to the cell a compound of formula (I): or a pharmaceutically acceptable salt, solvate, clathrate, or prodrug thereof wherein X, Y, A, Z, L and n are defined herein.