solution for ssl problem #5