implemented rudamentary filter