before changes to transformNEW.py