fixed filtering functions (handling non-numeric types)
typo