modified the clean procedure for PDFs
modified the clean procedure for PDFs