Compounds of formula (I) which are useful in ameliorating conditions characterized by unwanted sodium and/or calcium channel activity, particularly unwanted NaV 1.7, NaV 1.8, or CaV 3.2 channel activity are disclosed. Specifically, a series of compounds containing piperidine or piperazine linked through an amide, isoxazole or similar linker to an aryl ring are described and are shown to be useful for the treatment of pain or epilepsy. A is selected from Formulae (i) or (ii).본 발명은 원하지 않은 나트륨 및/또는 칼슘 채널 활성, 특히 원하지 않는 NaV 1.7, NaV 1.8 또는 CaV 3.2 채널 활성에 의해 특징지어지는 상태들의 개선에 효과적인 방법들 및 화합물들에 관한 것이다. 구체적으로, 일련의 화합물들은 아미드 또는 이소옥사졸에 의해 결합되거나 아릴 고리에 대한 유사한 링커(linker)에 의해 결합된 피페리딘 또는 피페라진을 포함하고 통증 및/또는 간질의 치료에 유용함을 나타낸다.