don't use the same var for XQ and frame ref