minor fixes to last integrate.