update to creating pdf