The present invention relates to compounds of formula I or a pharmaceutically acceptable salt thereof for use in the treatment or prevention suppression or amelioration of a disease mediated by the ROR gamma receptor in a subject in need thereof in particular diabetes and diabetes related disorders specifically type II diabetes methods of their production as well as methods of treatment or prevention of such diseases.