working on fixing a save bug