added new method for ttl