adapt and transform