paramaterized the pickle function/file stuff;