tearm code