The compounds having formula (I) (see formula (I)) are useful for inhibiting protein tyrosine kinases. The present invention also describes methods for preparing the compounds; Compositions containing the compounds, and methods of treatment using the compounds.