updated matrix and lspa