now using bitwise operators