layer_adapt