Disclosed herein are compounds of formula I in which R1, R2, R3, R4, R5, A, X, Y are as described in the specification, their use in pharmaceutical compositions and in methods of treatment or prophylaxis of a melanin-concentrating hormone related disease or condition.