The invention relates to novel compounds according to formula Ia and Ib; (Formula Ia and Ib) wherein A represents substituted or unsubstituted C1-10heteroaryl, C6-14aryl or C6- 10heterocycloalkylaryl; R1 is C1-6alkyl, C2-6alkenyl, C2-6alkynyl, C1-6hydroxyalkyl, C1-6haloalkyl, C1-6amino, C3-6 cycloalkyl, or C1-6heterocycloalkyl, each of which are optionally substituted; X represents -CR3R4-(CR5R6)n-(CR7=CR8)m-(C6-14aryl)r-(C1-10heteroaryl)s-(CR9R10)p- (CR11 = CR12)q, R2 represents C1-6alkyl, C2-6alkenyl, C2-6alkynyl, C1-6hydroxyalkyl, C1-6haloalkyl, C1-6amino, C1-12alkylsilyl, C6-30alkylarylsilyl, C1-10heteroaryl, C6-14aryl, C1-10heterocycloalkyl, C1-10heterocycloalkenyl, C1-8cycloalkyl, C1-18cycloalkenyl, each of which is optionally substituted, or R2 represents hydrogen, carboxy, or hydroxy; or a pharmaceutically acceptable salt, solvate, or ester thereof; to processes for the preparation thereof, to said compounds for use in therapy, to pharmaceutical compositions comprising said compounds, wherein said compounds being useful, e.g. in the treatment of diseases associated with disturbances of CaSR activity, such as hyperparathyroidism.