solution for ssl problem #4