added expectation value of density