My challenge to you:
Instead of being annoyed at your pet’s unwanted behavior, and punishing it. Pay attention to catch your pet in the act of wanted behavior, and reinforce heavily. Focus on making the wanted behavior easier and more valuable.
And guess which behavior you’ll see more of?