changed the name of the densityfunction