Shape memory for intrinsic versus accidental holes