remove dead bits