memory error, still check errors
Sb cannot be decomposed
update code