updated  update and delete method
updated  update and delete return values
updated  update and delete return values