improvment on tls