taking out secret key