refactor to .twig