i got my save function working