changed ensureNotPresent a bit