added for spike in creating pdf