sentence: while in new york , she also had the oerlikon 20 mm cannon mounted on her bow replaced by a 3-inch ( 76.2-mm ) 50-caliber gun , and she interrupted her loading of cargo on 9 october 1942 for work on the degaussing and compass adjusting ranges .