adding the check on the 2 first bits of the qual flag