safe pinning routine