capturing final changes