rename duration to ttl