Dogs are predominately clean animals and don’t like to toilet where they have been living. When the pup comes to your house, they will not know which area is inside/outside and may consider the end of the hallway or behind the couch as outside of their area. Find a designated