declare mqChange (and a couple other variables)