created twig variables extractor helper