update the .ts file