adding in overarching material in model, loss and optimisation