just some bit of mq code