getting rid of the ql variable