-changed functionality from twig function to filter