quickfix to query