refine on the fly, 2nd order cv