fixed pickle problem