tell them bad dog when they go in the house, you can take them over to it, if they just did it and scold them. No need to spank, just let them know you're upset. Everytime they wake up, as soon as they wake up, take them outside. If they haven't done number 2 in a while, you'll have to stay out there for a minute. Give them time and they'll go. As soon as they go, do like Tim said, and praise them. Give them a treat maybe.