fail try of fixing file saving
still fail
finish fixing bug