prevent es_query from side effecting