A compounds of formula (I), wherein m and n represent 1 or 2, A represents a pyrrolyl group, unsubstituted or substituted to 1-3 (C1-C6) alkyl group; X represents the group C(O), S (O) or SO2, R1-R6 substitutes are provided in the claims, optical and geometric isomers thereof and pharmaceutically acceptable acid-additive or acid-base salts. Pharmaceutical compositions on its base and combinations with anti-cancer agents. Use thereof for preparation of medicament as inhibiting cells migration agent and for treatment of metastasing cancer. A method for preparation of compound (1).