tweaking QSG a bit to make more sense