refine Document