serialization using pickle
merged