oops, should have been a bitwise and