Trayshrink with variable matrix