The invention provides new compounds of formula (I) wherein R1, R2, R3, R4, and X have different meanings. Preparative processes, pharmaceutical compositions, and uses thereof in the treatment or prevention of conditions mediated by melatonin receptors are also provided.