new density calculation