expanded transform function section including examples