changed to global public key