set crossfilter when needed