The invention relates to novel 5-hydroxytryptamine (5-HT) receptor modulator compounds of formula (I); wherein A, B, R1-R5, T, W, X, Y, Z and m are defined herein, to pharmaceutical compositions comprising these compounds and to their use in the treatment of conditions associated with 5-HT action.