A compound having the formula in which: (a) R1 and R2 are each independently C1-8 alkyl, C3-7 cycloalkyl, C4-10 alkylcycloalkyl, C1-6 alkoxy, C6-10 aryl, C7 alkyl -14 aryl, C9-14 cycloalkyl aryl, C7-14 alkoxy aryl, C9-14 cycloalkoxy aryl, heteroaryl or C7-14 alkyl heteroaryl of 5 to 7 members; or R1 and R2, together with the nitrogen atom to which they are attached, bind to form a 4- to 8-membered monocyclic heterocycle; (b) m is 1 or 2; (c) n is 1 or 2; (d) R3 is H or C1-6 alkyl, C2-6 alkenyl or C3-7 cycloalkyl, each optionally substituted with halogen; or R3 together with the carbon atom to which it is attached forms a C3-7 cycloalkyl group optionally substituted with C2-6 alkenyl; (e) R4 is C1-8 alkyl optionally substituted with halo, cyano, amino, C1-6 dialkyl amino, C6-10 aryl, C7-14 aryl alkyl, C1-6 alkoxy, carboxy, hydroxy, aryloxy, C7-14 alkyl aryloxy, C2-6 alkyl ester or C8-15 alkyl aryl ester; C3-12 alkenyl; C3-7 cycloalkyl or C4-10 alkyl cycloalkyl, wherein the cycloalkyl or alkylcycloalkyl are optionally substituted with hydroxy, C1-6 alkyl, C2-6 alkenyl or C1-6 alkoxy; (f) Y is H, phenyl substituted with nitro, pyridyl substituted with nitro or C1-6 alkyl optionally substituted with cyano, hydroxy or C3-7 cycloalkyl, with the proviso that if R5 or R6 is H, then Y is H; (g) B is H, C1-6 alkyl, R5- (C = O) -, R5O (C = O) -, R5-N (R6) -C (= O) -, R5-N (R6) - C (= S) -, R5SO2- or R5-N (R6) -SO2-; (h) R5 is (i) C1-10 alkyl optionally substituted with phenyl, carboxyl, C1-6 alkanoyl, 1-3 halogen, hydroxy, - OC (O) C1-6 alkyl, C1-6 alkoxy, amino optionally substituted with C1-6 alkyl, amido or (lower alkyl) amido; (ii) C3-7 cycloalkyl, C3-7 cycloalkoxy or C4-10 alkyl cycloalkyl, each optionally substituted with hydroxy, carboxyl, (C1-6 alkoxy) carbonyl, amino optionally substituted with C1-6 alkyl, amido or ( lower alkyl) amido; (iii) C6-10 aryl or C7-16 aryl alkyl, each optionally substituted with C1-6 alkyl, halogen, nitro, hydroxy, amido, (lower alkyl) amid