updated SMA.s0 to SMA.Transient into  memory_st function