k1 >> 3
is actually

k1 /( 2^3)

and

1 << 7

is
1 * 2 ^ 7


thank you for helping me understand that

now I have another issue

for some reason vb doesn't have XOR as a syntax?

even 10 XOR 10 the XOR is giving me an error?
is there any way to create an XOR like function?

thanx.