prune unnecessary bits