storing latest changes