trying to save data, currently broken- how to initialize header?