second derivatives fix.