A compound of formula wherein X is N-R 7, and Y is CH 2 or C; or X is oxygen or N-R 7, and Y is CH 2; and wherein in both cases R 1 is hydrogen, halogen, C 1-6 alkyl, or C 1-6 alkoxy; R 2 is hydrogen; halogen; C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro; or C 1-6 alkoxy; R 3 is C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro; cyano; morpholinyl; or R 8 -O-, wherein R 8 is C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro, C 1-6 alkoxy, C 1-6 alkylsulfonyl, cyano, C 3-7 cycloalkyl, C 1-6 alkylamino, diC 1-6 alkylamino, hydroxy, phenyl, pyrrolidinyl or tetrahydropyranyl; R 4 is hydrogen, halogen or C 1-6 alkyl; R 5 is hydrogen; C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro; C 1-6 alkoxy; C 3-7 cycloalkyl or C 3-7 cycloalkyl-C x H 2x -; R 6 is C 1-6 alkylsulfonyl; hydroxyl; 1H-tetrazol-5-yl; C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro, C 3-7 cycloalkyl, carboxyl-C x H 2x -, phenyl, hydroxy, C 1-6 alkoxy, amino, C 1-6 alkylamino or diC 1-6 alkylamino; R 7 is hydrogen or C 1-6 alkyl; or R 6 and R 7, together with the nitrogen to which they are attached, form pyrrolidinyl, piperidinyl, morpholinyl, which is unsubstituted or once or two times substituted by carboxyl; or pharmaceutically acceptable salts, enantiomers or diastereomers thereof. X is N-R 7, and Y is CH 2 or C; or X is N-R 7, and Y is CH 2 or C; X is oxygen or N-R 7, and Y is CH 2; and wherein in both cases R 1 is hydrogen, halogen, C 1-6 alkyl, or C 1-6 alkoxy; R 2 is hydrogen; halogen; C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro; or C 1-6 alkoxy; R 3 is C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro; cyano; morpholinyl; or R 8 -O-, wherein R 8 is C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro, C 1-6 alkoxy, C 1-6 alkylsulfonyl, cyano, C 3-7 cycloalkyl, C 1-6 alkylamino, diC 1-6 alkylamino, hydroxy, phenyl, pyrrolidinyl or tetrahydropyranyl; R 4 is hydrogen, halogen or C 1-6 alkyl; R 5 is hydrogen; C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro; C 1-6 alkoxy; C 3-7 cycloalkyl or C 3-7 cycloalkyl-C x H 2x -; R 6 is C 1-6 alkylsulfonyl; hydroxyl; 1H-tetrazol-5-yl; C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro, C 3-7 cycloalkyl, carboxyl-C x H 2x -, phenyl, hydroxy, C 1-6 alkoxy, amino, C 1-6 alkylamino or diC 1-6 alkylamino; R 7 is hydrogen or C 1-6 alkyl; or R 6 and R 7, together with the nitrogen to which they are attached, form pyrrolidinyl, piperidinyl, morpholinyl, which is unsubstituted or once or two times substituted by carboxyl; or pharmaceutically acceptable salts, enantiomers or diastereomers thereof. X is oxygen or N-R 7, and Y is CH 2; and wherein in both cases R 1 is hydrogen, halogen, C 1-6 alkyl, or C 1-6 alkoxy; R 2 is hydrogen; halogen; C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro; or C 1-6 alkoxy; R 3 is C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro; cyano; morpholinyl; or R 8 -O-, wherein R 8 is C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro, C 1-6 alkoxy, C 1-6 alkylsulfonyl, cyano, C 3-7 cycloalkyl, C 1-6 alkylamino, diC 1-6 alkylamino, hydroxy, phenyl, pyrrolidinyl or tetrahydropyranyl; R 4 is hydrogen, halogen or C 1-6 alkyl; R 5 is hydrogen; C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro; C 1-6 alkoxy; C 3-7 cycloalkyl or C 3-7 cycloalkyl-C x H 2x -; R 6 is C 1-6 alkylsulfonyl; hydroxyl; 1H-tetrazol-5-yl; C 1-6 alkyl, which is unsubstituted or once or more times substituted by fluoro, C 3-7 cycloalkyl, carboxyl-C x H 2x -, phenyl, hydroxy, C 1-6 alkoxy, amino, C 1-6 alkylamino or diC 1-6 alkylamino; R 7 is hydrogen or C 1-6 alkyl; or R 6 and R 7, together with the nitrogen to which they are attached, form pyrrolidinyl, piperidinyl, morpholinyl, which is unsubstituted or once or two times substituted by carboxyl; or pharmaceutically acceptable salts, enantiomers or diastereomers thereof.