still trying to fix the pdf print problem