optimizing thermal insulation