finished implementing filter