Cats love to be rewarded, and praising them or giving them a treat when they've done what you want them to do is much more effective than punishing them for what you don't want them to do.