fix delete method