added cq offset passing