pickling the model