The invention relates to the compounds of formula I (I) wherein A is N or CH; and n is 0 or 1; or the pharmaceutically acceptable salts thereof, for preventing or treating intestinal diseases which are caused by bacteria selected from Clostridium difficile, Clostridium perfringens or Staphylococcus aureus.