improve transformation process