updating tern