A critically wounded Philadelphia police officer is improving after a third surgery, and police have determined the gun used to shoot him was stolen in a burglary last year — at the home of a retired city officer.

Police Commissioner Charles Ramsey is sharing those details in updating the status of 41-year-old Officer Edward Davies, who remained at Temple University Hospital on Friday.

Thirty-one-year-old 31-year-old Eric Torres remained jailed on charges he fought with other officers and shot Davies on Tuesday after he allegedly sped away from a traffic stop that morning and was cornered in a store.

Torres faces a preliminary hearing Sept. 4 on attempted murder and other charges stemming from the confrontation, as well as drug dealing charges related to heroin allegedly found in his home later that day.