fixed saving to storage logic