update hat/tilde c/d computation
finish c/d and integrals