serializing and storage