pure functiondensity_phxi