patch transform function
remove legacy code