The present invention provides a compound of formula I:wherein R1, R2, R3, R4, and R5 are as defined herein. The present invention also provides pharmaceutical compositions and methods using such compositions for treating a caspase-mediated diseases and processes for preparing the compounds of the invention.