added code for producing paper tables