made pdf work and better