trying to fix delete method