The first thing to be conscious of when training a dog is timing. No matter how much we attribute human characteristics to our dogs, they are not human. They do not comprehend when we tell them something after the fact. You must correct or reinforce behavior instantly. If your dog pooped on the floor an hour ago, it is too late for him to understand any correction now. He's forgotten all about that and he won't understand why you are yelling at him now.