save and edit incorporated with public key