bit and pointer function