contestada

please help!!!

Which revision corrects the dangling modifier in this sentence?

Painting the deck, the rag made the man trip and fall.

A. The rag made the man trip and fall, painting the deck.

B. The rag, painting the deck, made the man trip and fall.

C. While the man was painting the deck, the rag made him trip and fall.

D. While painting the deck, the rag made the man trip and fall.