added __ttl__ function