removed bitwise operations