added prototype for pickling function