convert filters to global functions