add helper for query