changes in pdf generation