change filter to type rather than account_type