enclosed tests in () and made type tests into filters