how to get ttl