The present invention provides a method of treating glaucoma or ocular hypertensionwhich comprises applying to the eye of a person in need thereof an amount sufficientto treat glaucoma or ocular hypertension of a compound of formula (I), whereinY, Q, Z, R, R