mod transform funcation methods to use TransformFunction object