Removing undeeded bits