I agree. Do you take them out to potty? It would be best if they learned to go outside. And a trip out just before bedtime and first thing in the morning is essential.

Use a good enzyme remover on your rug so they don't want to re-use it. It will remove the odor completely so you will be happy, too. Try Nature's Miracle or Outright's Simple Solution.