really adds the pdf function