updating code for parallel part 2
also editing pdfs