remove data using filter function