remove redundant codes
modify the pdf