modified transformations code