implemented Filter in DS