adapt environment