switching to component function from the filter