fixed method name  in the twig extension