implement range filtering for workitems