use Twig instead of eval php