you can write a method of SData for data reading and MSG memory management