rework getting rid of bogus bits