put pmlfinal and A as parameters of Cavity structure so that can easily update eps later on