edit method fixed