two sweeping scripts using hashbits added