added first draft of public transform function