The disclosures herein relate to novel compounds of formula wherein W, X and Y
1
, Y
2
, Y
3
and Y
4
are defined herein, and their use in treating, preventing, ameliorating, controlling or reducing the risk of neurological or psychiatric disorders associated with orexin receptors.