serializing and transient variables