adding helper for parsing query