refine pinning