improved performance of bitwise ops