bit cleanup