resetting public key array