implemented a code transformation mode