This invention is related to new histone deacetylase inhibitors according to the general formula (I), wherein:is a single or a double bond m and n are independently zero or an integer from 1 to 4 p is zero or an integer from 1 to 3, with the proviso that when p is zero, n and m cannot be both 1 R is hydrogen C1-C6 alkyl, optionally substituted by cycloalkyl, aryl or by heteroaryl (CO)R2 (SO2)R3 cycloalkyl aryl or heteroaryl R1 is halogen, C1-C6 alkyl, C1-C6 haloalkyl, C1-C6 alkoxy, C1-C6 haloalkoxy X is CH2, oxygen or NR4 Y is CHR5 or NR6 Z is CR7R8 or C=R9 and R2, R3, R4, R5, R6, R7, R9, and R9 are as further defined in the specification and pharmaceutical acceptable salts thereof.