change bitwise to equality