The present invention relates to 1-[m-carboxamido(hetero)aryl-methyl]-heterocycyl-carboxamide compounds of formula (I) wherein X, Ar1, R1, R2, R3, R4, R5a, R5b and p are as described in the description, to their preparation, to pharmaceutically acceptable salts thereof, and to their use as pharmaceuticals, to pharmaceutical compositions containing one or more compounds of formula (I), and especially to their use as CXCR7 receptor modulators.本發明係關於式(I)之1-[間-甲醯胺基(雜)芳基-甲基]-雜環-甲醯胺化合物,其中X、Ar1、R1、R2、R3、R4、R5a、R5b及p係如說明書中所述,其製備、其醫藥上可接受之鹽,及其作為醫藥之用途,含有一或多種式(I)化合物之醫藥組合物,及尤其其作為CXCR7受體調節劑之用途。