improved pinning