nqs generalized