delete unnecessary bits