saving and re-edit proto