updated transform script