cleaning up bits