how would you rewrite the following compound sentence as a complex sentence by changing the italicized clause to a subordinate clause

Harry drew near the fire, and he nearly signed his jaket.