saving changes at the end fo the day