let the carpet be rectangular