Changed delete method