Revise the sentence for dangling modifiers " running up the stairs, the train had already left for Philadelphia."

The train had already left for Philadelphia by the time I ran up the stairs.