copy refinement.. from HEATHER!