adding pdf() to the negent_hist routine