use query-len of the it instead of the global param