a bit code cleaup