How does the sentence end?

James took out the carpet the dog pooped on and laid a mat because the
mat is clean.