added a get function for the CQ