updated mesh refinement