fixed to produce PDF