The Union soldiers were also busy building their own entrenchments. At about 9 a.m., Maj. Gen. John Sedgwick was inspecting his VI Corps line when he was shot through the head by a Confederate sharpshooter's bullet, dying instantly, having just made the celebrated remark "they couldn't hit an elephant at this distance". Sedgwick was one of the most beloved generals in the Union Army and his death was a hard blow to his men and colleagues. Meade ordered Maj. Gen. Horatio G. Wright, the senior division commander, to replace Sedgwick.