remove last q reference