The present invention provides compounds of formula (I) and a method of inhibiting the reuptake of serotonin and antagonizing the serotonin receptor which comprises administering to a subject in need of such treatment an effective amount of a compound of formula (I).