memory cleanup for bits