change pickle format