Most of Versailles' inhabitants used communal latrines located throughout the palace, off the main galleries or at the end of the residential corridors on the upper floors. These were sources of continual stench, polluting nearby rooms and causing issues of blockage and sewage leaks from the iron and lead pipes which drained the privies on the upper floors. Although discouraged, it was common for people to relieve themselves under stairways or in secluded passageways, especially if a latrine was closed. The ground floor gallery of the south wing was prone to this, to the extent that iron bars had to be installed in the corridor outside the rooms of the Dauphin Louis and the Dauphine when they moved to the south wing in 1745.