modify delete method