trying to get rid of pdf error