preperation for serialization