Provided herein are compounds of the formula (I), as well as pharmaceutically acceptable salts thereof, wherein the substituents are as those disclosed in the specification. These compounds, and the pharmaceutical compositions containing them, are useful for the treatment or prevention of mGluR5 mediated disorders, such as acute and/or chronic neurological disorders, cognitive disorders and memory deficits, as well as acute and chronic pain.本發明提供了式I的化合物:以及其可藥用鹽,其中取代基如說明書中所揭露。這些化合物以及含有它們的藥物組合物用於治療或預防mGluR5介導的病症,諸如急性和/或慢性神經系統疾病、認知障礙和記憶缺失以及急性和慢性疼痛。