refine random half window