template adaptation