refine resource