altered ssa model definition methods to use matrices