immediately invoke queryParams function expression