adding twig helper functions