made sure everything is saved