bit cleaner code