tranform templates file and add modify object function