bitops for handling 32 bits