sample code for 'after pass whole document' slide