double if removal