The behavior should produce the treat; the treat should not produce the behavior. Every interaction you have with your dog is a learning opportunity. Reinforce him with praise, touch, games and walks when treats are not available. Tell him what you want him to do Instead of telling your dog no, tell him what you want him to do.