updated for pdf creation