added steps to encrypt