implementing filter and connecting