foil functionals