solution for ssl problem #6