edit exist method and init methods