Hybrid mask:added varibles mask_add_len and  num_qw