playing around with pickle function