transform with arbitrarily large numbers of functions and interactions