added edit method