update pickle method