update for existing pdf.svg files

small changes in condtion