make functions that return TransformFuncs

This makes things much more general