stability improvement to mesh length