remove extra codes