It’s best not to punish the puppy for making a mistake. Instead, focus on praising appropriate bathroom behavior. If you catch your puppy in the act, interrupt it by saying “No!” in a firm voice or clapping your hands loudly, then take the puppy outside to finish going to the bathroom. Never swat your puppy, yell at it, or try to rub its nose in the mess.
Puppies would much rather play with leaves and bugs than go potty, if you aren’t there to see that you won’t know your pup needs to go back into his crate and come out again 5-10 minutes later! He will learn to sneak away, and have accidents inside. If you leave him outside for an extended period of time, chances are when you bring him back in he will need to go outside again soon or have an accident.
Introduce your new pup to its new home, family and their role. Just like when you are new to a place or group, your new pet may be bursting with curiosity, excitement, fear or joy. Now is the best time to lay out the foundation for a good and pleasant relationship with your pet. For a puppy to settle in and learn to trust and respect you and everyone at home, it is very important to establish your expectations of your puppy and be consistent with them.
Lindsay says of this study, "Schilder and Van der Borg (2004) have published a report of disturbing findings regarding the short-term and long- term effects of shock used in the context of working dogs that is destined to become a source of significant controversy ... The absence of reduced drive or behavioral suppression with respect to critical activities associated with shock (e.g., bite work) makes one skeptical about the lasting adverse effects the authors claim to document. Although they offer no substantive evidence of trauma or harm to dogs, they provide loads of speculation, anecdotes, insinuations of gender and educational inadequacies, and derogatory comments regarding the motivation and competence of IPO trainers in its place." 
If pup is peeing in the wrong place... you may be able to stop him. Move quickly towards him when he begins to pee and pick him up. Urgency is key here - you want to startle the pup just a little as you move towards them to pick them up, but you DO NOT want to scare the pup. You are redirecting your puppy to the right spot - not disciplining him. Immediately after picking him up, take him to the potty area and patiently wait. Most pups will finish there. Reward your pup with exuberance!