A compound of the formula (I) (values R1, R2, R3, R4, R5, Z1, Z2, n, m and p are defined in the description) or a pharmaceutically acceptable salt thereof, a pharmaceutical composition containing it and use pharmaceutical or the pharmaceutically acceptable salt thereof for treatment of diseases or conditions associated with fatty acid amide hydrolase (FAAH) activity.