the same for the edit method