changed twig interface