add the pds and delete the useless files