changed mask to __u8