how to use bitmasks
note: right shift by x will eliminate x zeros