saving pb file