AUTOMATIC GENERATION & ADAPTATION OF