These guns had a maximum range of 4800 yards , but some were replaced by 40 mm Bofors AA guns when the ships were transferred to the Pacific Theater as the 20 mm shell was unlikely to destroy a kamikaze before it hit the ship.