implement twig