tested bitwise And & bitwise Or function