To change a habit, you simple change the behaviors that collectively form the habit. Without knowing what causes you or your pet to behave in a certain way, you would not be able to directly attract the problem and eliminate it. After finding out the causes of the behavior, change the environment so to eliminate the pressure that cause the behavior to arise. Even after you change the environment, some behaviors can still persist, and when they do, move on with the next tip. Punishment should be painful so that the brain associates it with negative rewards. Constant punishment will force the brain to think of ways of avoiding it, and that is really helpful for behavior change. Always be optimistic and the attitude will rub off to everything that you do. Give rewards whenever something positive happens, rewards help to rewire the brain so that it is always anticipating more, and this leads to an eventual change of behavior. It is easy to revert to the unwanted behavior when there is nothing else to do on its part, and the best way to guard against this tendency is to come up with alternative behaviors. As you encourage the stoppage of a behavior, so should you promote the adoption of a more positive one.