using getBit()