The invention relates to compounds of formula (I) and pharmaceuticallyacceptable derivativesthereof, compositions comprising an effective amount of a compound of formulaI or apharmaceutically acceptable derivative thereof, and methods for treating orpreventing acondition such as pain, UI, an ulcer, IBD and IBS, comprising administering toan animal in needthereof an effective amount of a compound of formula I or a pharmaceuticallyacceptablederivative thereof.