min is added twice here however min and max are now natice twig function