fixed edit method