made a wrong commit. changed back the densityfunction