tf to adj code