corrected ttl_count addition