finishing touches, needed to force add the h5 density matrix for example electron gas