modify delete handler