simplified pinning logic